package com.skyjoo.search.lucene.index.search;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.facet.FacetsConfig;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.Sort;

import com.skyjoo.search.lucene.common.PaginationBaseZero;

public abstract class BaseQuery<E> extends PaginationBaseZero<E> {

    /**
     * 
     */
    private static final long serialVersionUID = -6991933712043089854L;

    public abstract Query getQuery(Analyzer analyzer, FacetsConfig config);

    public Query getQuery(Analyzer analyzer) {
        return this.getQuery(analyzer, null);
    }

    public abstract Sort getSort();

}
